/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28463
 * Date: 2022—06—19
 * Time: 18:26
 */
public class Book {
    //封装数据
    private int id;
    private String name;
    private int price;
    public String getName() {
        return name;
    }
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getPrice() {
        return price;
    }
    public void setPrice(int price) {
        this.price = price;
    }
    public Book(String name, int price,int id){
        this.name=name;
        this.price=price;
        this.id=id;
    }
}